﻿#pragma once

#include <QWidget>
#include "ui_robotinfowid.h"
#include "robotcontroldlg.h"

class RobotInfoWid : public QWidget
{
	Q_OBJECT

public:
	RobotInfoWid(QWidget *parent = nullptr);
	~RobotInfoWid();

	void Init();

	void ShowInfo();

	void SetDOShow(QString& doi);
	void SetDIShow(QString& di);

private slots:
	void on_pushButton_clicked();		// 重连
	void on_pushButton_2_clicked();	// 机械手操作
	void on_pushButton_3_clicked(); // 返回原点
private:
	Ui::RobotInfoWid ui;
	Robot* m_rob = nullptr;
	RobotControlDlg* m_robOpr = nullptr;
};
